//
//  TTRefreshHeader.m
//  AssistantCloud1
//
//  Created by YYKJ on 2017/4/19.
//  Copyright © 2017年 YYKJ. All rights reserved.
//

#import "BVRefreshHeader.h"

@implementation BVRefreshHeader

- (instancetype)init{
    
    if (self = [super init]) {
        
        //自动改变透明度 （当控件被导航条挡住后不显示）
        self.automaticallyChangeAlpha = YES;
        
        [self setTitle:@"下拉开始刷新" forState:MJRefreshStateIdle];
        [self setTitle:@"松开立即刷新" forState:MJRefreshStatePulling];
        [self setTitle:@"正在刷新..." forState:MJRefreshStateRefreshing];
        
        [self.stateLabel setFont:[UIFont systemFontOfSize:13]];
        [self.lastUpdatedTimeLabel setFont:[UIFont systemFontOfSize:13]];
        
        [self.stateLabel setTextColor:[UIColor grayColor]];
        [self.lastUpdatedTimeLabel setTextColor:[UIColor grayColor]];
        
        [self beginRefreshing];
    }
    return self;
}

@end
